﻿<%@ Page Language="C#" MasterPageFile="MasterPageSEG.Master" AutoEventWireup="true" CodeBehind="UsuarioEmpresa.aspx.cs" Inherits="SEG.UsuarioEmpresa" Title="SS - Usuário Empresa" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width:95%;" border="0" cellspacing="0" cellpadding="2" align="center">
        <tr>
            <td align="left">
                <asp:Label ID="Label1" runat="server" 
                    style="font-weight: 700; font-size: large; color: #000000; font-family: Arial, Helvetica, sans-serif; text-align: left" 
                    Text="Empresas do Usuário"></asp:Label>
                &nbsp;<asp:Label ID="lblUsuario" runat="server" 
                    
                    style="font-weight: 700; font-size: large; color: #000000; font-family: Arial, Helvetica, sans-serif; text-align: left"></asp:Label>
                &nbsp;<hr class="linhahorizontal"
                    style="width: 750px" />
                <br />
            </td>
        </tr>
        <tr>
            <td align="left" class="barra">
                <asp:Button ID="btn_Novo" runat="server" 
                    style="font-family: Arial, Helvetica, sans-serif; font-weight: 700" Text="Novo" 
                    Width="80px" onclick="btnNovo_Click" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="GridUsuEmp" runat="server" AutoGenerateColumns="False" 
                    CssClass="grid" EmptyDataText="Nenhuma Empresa Encontrada" 
                    onrowdatabound="GridUsuEmp_RowDataBound">
                    <RowStyle CssClass="row" />
                    <EmptyDataRowStyle CssClass="emptyrow" />
                    <Columns>
                        <asp:BoundField DataField="CNPJ_EMPRESA" HeaderText="CNPJ">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" Width="150px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="NOM_EMPRESA" HeaderText="Nome">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" Width="350px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="COD_EMPRESA" HeaderText="CODIGO" Visible="False">
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Excluir">
                            <ItemTemplate>
                                <asp:HyperLink ID="hplExcluir" runat="server" 
                                    ImageUrl="../../Imagens/botoes/Delete.png">Excluir</asp:HyperLink>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Padrão">
                            <ItemTemplate>
                                <asp:RadioButton ID="rbPadrao" runat="server" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Grupos">
                            <ItemTemplate>
                                <asp:HyperLink ID="hplGrupos" runat="server" 
                                    ImageUrl="../../Imagens/botoes/grupos.png">Grupos</asp:HyperLink>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle CssClass="footer" />
                    <PagerStyle CssClass="pager" />
                    <HeaderStyle CssClass="header" />
                    <AlternatingRowStyle CssClass="row_alter" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblPagina" runat="server" CssClass="label" Text="Label"></asp:Label>
                <span style="color: black">/</span><asp:Label ID="lblTotalPag" runat="server" 
                    CssClass="label" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnPrimeiro" runat="server" style="font-weight: 700" 
                    Text="Primeiro" Width="80px" />
                <asp:Button ID="btnAnterior" runat="server" style="font-weight: 700" 
                    Text="Anterior" Width="80px" />
                <asp:Button ID="btnProximo" runat="server" style="font-weight: 700" 
                    Text="Próximo" />
                <asp:Button ID="btnUltimo" runat="server" style="font-weight: 700" 
                    Text="Último" Width="80px" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:HyperLink ID="hplVoltar" runat="server" 
                    style="font-size: small; color: #0000CC; text-decoration: underline; font-family: Arial, Helvetica, sans-serif">Voltar</asp:HyperLink>
            </td>
        </tr>
        </table>
</asp:Content>
